package com.young.design.pattern.factory.abstractfactory;

//抽象产品：动物类
interface Animal {
    public void grow();
}
//具体产品：马类
class Horse implements Animal {

    public void grow() {
        System.out.println("马长大了");
    }
}
//具体产品：牛类
class Cattle implements Animal {


    public void grow() {
        System.out.println("牛长大了");
    }
}
